-
Notifications
You must be signed in to change notification settings - Fork 25.6k
This adds a new experimental IVF format behind a feature flag #128631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Ben, great work.
Do we plan to add ivf beyond bbq?
| ); | ||
|
|
||
| private static final int DEFAULT_VECTORS_PER_CLUSTER = 1000; | ||
| public static final int DYNAMIC_NPROBE = -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a comment here explaining what is DYNAMIC_PROBE and why is set to -1 would help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YEP!
server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java
Show resolved
Hide resolved
| + CONTENT_TYPE | ||
| + "] fields with index type [" | ||
| + indexOptions.type | ||
| + "] with cannot be indexed if they're within [nested] mappings" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: drop the the second "with"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
++
| num_candidates: 3 | ||
|
|
||
| - match: { hits.total: 3 } | ||
| - set: { hits.hits.0._score: raw_score0 } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How we are using raw_scores that we preserve here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awe, bad copy paste I think. I fill fix
yeah, the current name is temporary, want to provide a better name before release. |
* Adding new bbq_ivf format behind a feature flag * adding tests * [CI] Auto commit changes from spotless * addressing pr comments * fixing flagging for yaml tests * adjust ivf search to utilize num candidates as approximation measure --------- Co-authored-by: elasticsearchmachine <[email protected]>
…c#128631) * Adding new bbq_ivf format behind a feature flag * adding tests * [CI] Auto commit changes from spotless * addressing pr comments * fixing flagging for yaml tests * adjust ivf search to utilize num candidates as approximation measure --------- Co-authored-by: elasticsearchmachine <[email protected]>
…c#128631) * Adding new bbq_ivf format behind a feature flag * adding tests * [CI] Auto commit changes from spotless * addressing pr comments * fixing flagging for yaml tests * adjust ivf search to utilize num candidates as approximation measure --------- Co-authored-by: elasticsearchmachine <[email protected]>
…c#128631) * Adding new bbq_ivf format behind a feature flag * adding tests * [CI] Auto commit changes from spotless * addressing pr comments * fixing flagging for yaml tests * adjust ivf search to utilize num candidates as approximation measure --------- Co-authored-by: elasticsearchmachine <[email protected]>
This is for testing purposes only. That is why its behind a feature flag, the format will likely evolve and change significantly before release, breaking compatibility. Consequently, we have it locked behind a feature flag for the time being.